
import wsgiref.handlers
from google.appengine.ext import webapp
from models import *
from controllers import *



def main():
  application = webapp.WSGIApplication([('/',MainPage),
                                        ('/q',QuestionController),
                                        ('/q/(.*)',QuestionAndAnswerController),
                                        ('/a/(.*)',AnswerController),
                                        ],debug=True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
    main()

